package Model;

import java.awt.Point;


/**
 * A Character in any given puzzle game
 * -Created Class(Feb 2,2011)
 * Samual Martelli
 * </pre>
 */
public abstract class GameCharacter {
	protected Point coordinates;
	
	
	//Pass a point to GameCharacter and set his coordinates to it
	public GameCharacter(Point initialPlace){
		  coordinates = initialPlace;
	}
	
	//Getters: one for x,one for y,one for coordinates
	public int getCoordinateX(){
		return (int) coordinates.getX();
	}
	
	public int getCoordinateY(){
		return (int) coordinates.getY();
	}
	
	public Point getCoordinate(){
	       return coordinates;
	}
	
	//setters for moves
	public void setCoordinateX(int newSpot){
		 coordinates.x = newSpot;
	}
	
	public void setCoordinateY(int newSpot){
		 coordinates.y = newSpot;
	}
}
